﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SachOnlineLibrary.Public
{
    public class ChiTietDatHang
    {
        int maSach;

        public int MaSach
        {
            get { return maSach; }
            set { maSach = value; }
        }
        int maPhieu;

        public int MaPhieu
        {
            get { return maPhieu; }
            set { maPhieu = value; }
        }
        int soLuong;

        public int SoLuong
        {
            get { return soLuong; }
            set { soLuong = value; }
        }
        long donGia;

        public long DonGia
        {
            get { return donGia; }
            set { donGia = value; }
        }
        Sach sach;

        public Sach Sach
        {
            get { return sach; }
            set { sach = value; }
        }
        public void ChuyenDoi(System.Data.DataRow dr)
        {
            MaSach = int.Parse(dr[0].ToString());
            MaPhieu = int.Parse(dr[1].ToString());
            SoLuong = int.Parse(dr[2].ToString());
            DonGia = long.Parse(dr[3].ToString());
        }
    }
}
